package org.jeecg.modules.product.risk.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 隐患排查任务信息
 * @Author: jeecg-boot
 * @Date:   2024-03-07
 * @Version: V1.0
 */
@Schema(description="隐患排查任务信息")
@Data
@TableName("tb_base_measures_task")
public class TbBaseMeasuresTask implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;
	/**创建人*/
    @Schema(description = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建日期")
    private Date createTime;
	/**更新人*/
    @Schema(description = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @Schema(description = "所属部门")
    private String sysOrgCode;
	/**分配方式*/
	@Excel(name = "分配方式", width = 15, dicCode = "distribution_type")
    @Dict(dicCode = "distribution_type")
    @Schema(description = "分配方式")
    private String type;
	/**排查周期*/
	@Excel(name = "排查周期", width = 15)
    @Schema(description = "排查周期")
    private Integer period;
	/**周期单位*/
	@Excel(name = "周期单位", width = 15, dicCode = "period_type")
    @Dict(dicCode = "period_type")
    @Schema(description = "周期单位")
    private String periodUnit;
	/**初始排查时间*/
	@Excel(name = "初始排查时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "初始排查时间")
    private Date startTime;
	/**工作日历*/
	@Excel(name = "工作日历", width = 15, dicCode = "calendar_type")
    @Dict(dicCode = "calendar_type")
    @Schema(description = "工作日历")
    private String calendar;
	/**排查人*/
	@Excel(name = "排查人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Schema(description = "排查人")
    private String identifyPeople;
	/**排查岗位*/
	@Excel(name = "排查岗位", width = 15, dictTable = "sys_position", dicText = "name", dicCode = "code")
    @Dict(dictTable = "sys_position", dicText = "name", dicCode = "code")
    @Schema(description = "排查岗位")
    private String identifyStation;
	/**管控措施 id*/
    @Schema(description = "管控措施 id")
    private String riskMeasureId;
	/**工作开始日期*/
	@Excel(name = "工作开始日期", width = 15)
    @Schema(description = "工作开始日期")
    private String workBeginTime;
	/**工作结束日期*/
	@Excel(name = "工作结束日期", width = 15)
    @Schema(description = "工作结束日期")
    private String workEndTime;
    /**最近下发时间*/
    //@Excel(name = "最近下发时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "最近下发时间")
    private Date latestTime;
	/**任务类型*/
	@Excel(name = "任务类型", width = 15, dicCode = "risk_work_type")
    @Dict(dicCode = "risk_work_type")
    @Schema(description = "任务类型")
    private String workType;
	/**包保任务对应项*/
	@Excel(name = "包保任务对应项", width = 15, dictTable = "tb_defend_risk_task_num", dicText = "content", dicCode = "code")
    @Dict(dictTable = "tb_defend_risk_task_num", dicText = "content", dicCode = "code")
    @Schema(description = "包保任务对应项")
    private String taskNum;
    /**删除标志*/
    @Excel(name = "删除标志", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @Schema(description = "删除标志")
    private String deleted;

    /**租户ID*/
    private Integer tenantId;
}
